<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<!-- 人员信息修改页面 -->
<?php
// 判断是否正常访问
session_start();
if (!isset($_SESSION['ADMIN'])) {
    echo "<script>alert('非法访问！请先登录！');window.location.href='../../../index.html';</script>";
    die();
}
?>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="../img/ICO.png">
    <title>校园报修系统 · 管理员</title>
    <link rel="stylesheet" href="../layui-v2.9.18/layui/css/layui.css">
    <link rel="stylesheet" href="../bootstrap-5.3.3-dist/bootstrap.min.css">
    <link rel="stylesheet" href="css/a-public.css">
    <link rel="stylesheet" href="css/a-change-repairer.css">
    <script src='js/a-search-repairer.js'></script>
</head>

<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">
                <img src="../img/logo-0.png" height="100%">
            </div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <b class="layui-nav-item layui-show-xs-inline-block">
                    <i class="layui-icon layui-icon-date"></i> 日期：<span id="nowTime"></span> |
                    <i class="layui-icon layui-icon-time"></i> 时间：<span id="timeDisplay"></span>
                </b>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-friends"> 登录管理员：</i>
                        <?php echo $_SESSION['ADMIN']['a_name'];?>
                        <span> | </span><span id="welcome"></span>
                    </a>
                </li>
                <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                    <a href="php/logout.php">
                        <i class="layui-icon layui-icon-return" title="退出登录"></i>
                    </a>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item">
                        <a href="javascript:;">系统面板</a>
                        <dl class="layui-nav-child">
                            <dd><a href="a-main.php">信息统计面板</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">报修任务处理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="a-tasks-pending.php">待处理任务</a></dd>
                            <dd><a href="a-tasks-ongoing.php">进行中任务</a></dd>
                            <dd><a href="a-tasks-history.php">历史任务查询</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;">维修人员管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="a-repairer.php">人员信息总览</a></dd>
                            <dd><a href="a-repairer-add.php">人员信息添加</a></dd>
                            <dd class="layui-this"><a href="javascript:;">人员信息修改</a></dd>
                            <dd><a href="a-repairer-del.php">维修账号停启用</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">报修类型管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="a-type.php">报修类型总览</a></dd>
                            <dd><a href="a-type-change.php">修改报修类型</a></dd>
                            <dd><a href="a-type-add.php">添加报修类型</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div style="padding: 15px;">
                <blockquote class="layui-elem-quote layui-text">
                    在此修改维修人员信息，请确保填写的信息准确无误，工号不支持修改
                </blockquote>
                <div class="layui-card layui-panel">
                    <div class="layui-card-header main-header">
                        <i class="layui-icon layui-icon-search"></i> 输入完整工号查询：
                        <input type="text" id="r_id" placeholder="请输入工号" class="top-search-input">
                        <button type="button" class="layui-btn layui-btn-primary layui-border-blue top-search-button" onclick="searchRepairer_1()">查询</button>
                    </div>
                    <div class="layui-card-body">
                        <div class="form-div" id="form-div">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-footer">
            <!-- 底部固定区域 -->
            校园报修系统© 2025®
        </div>
    </div>
    <script src="../layui-v2.9.18/layui/layui.js" charset="utf-8"></script>
    <script src="js/getDatetime.js"></script>
</body>

</html>